package com.iwhalecloud.uncc.model;

public class RedisConfig  {

	private Long rcId;
	private String rcCode;
	private String templateCode;
	private String hostPort;
	private Integer db;
	private String username;
	private String pwd;
	private Integer period;
	private Integer monitorTimeout;
	private String poolProperties;

	public Long getRcId() {
		return rcId;
	}

	public void setRcId(Long rcId) {
		this.rcId = rcId;
	}

	public String getRcCode() {
		return rcCode;
	}

	public void setRcCode(String rcCode) {
		this.rcCode = rcCode;
	}

	public String getTemplateCode() {
		return templateCode;
	}

	public void setTemplateCode(String templateCode) {
		this.templateCode = templateCode;
	}

	public String getHostPort() {
		return hostPort;
	}

	public void setHostPort(String hostPort) {
		this.hostPort = hostPort;
	}

	public Integer getDb() {
		return db == null ? 0 : db;
	}

	public void setDb(Integer db) {
		this.db = db;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPwd() {
		return pwd;
	}

	public void setPwd(String pwd) {
		this.pwd = pwd;
	}

	public Integer getPeriod() {
		return period == null ? 5000 : period;
	}

	public void setPeriod(Integer period) {
		this.period = period;
	}

	public Integer getMonitorTimeout() {
		return monitorTimeout == null ? 5000 : monitorTimeout;
	}

	public void setMonitorTimeout(Integer monitorTimeout) {
		this.monitorTimeout = monitorTimeout;
	}

	public String getPoolProperties() {
		return poolProperties;
	}

	public void setPoolProperties(String poolProperties) {
		this.poolProperties = poolProperties;
	}

}
